﻿using MediatR;
using SCM.ErrorCode;

namespace SCM.API.Write.Application.Command.SaleRefund
{
    public class AddSaleRefundCommand:IRequest<APIResult<int>>
    {
       
        /// <summary>
        /// 退货单号
        /// </summary>
        public string SaleRefundNum { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public string ProductSpecs { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public int UnitId { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public double Price { get; set; }
        /// <summary>
        /// 退货数量
        /// </summary>
        public int RefundNum { get; set; }
        /// <summary>
        /// 总额
        /// </summary>
        public double Total { get; set; }
        /// <summary>
        /// 销售单号
        /// </summary>
        public string SaleId { get; set; }
       
        /// <summary>
        /// 客户编号
        /// </summary>
        public int CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }
        public string? CreateName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public int MadeName { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime MadeTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string InvoiceType { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public string InvoiceState { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string Contact { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Desc { get; set; }
    }
}
